class Projectile
{
  //constants
  static final float PROJECTILE_SPEED = 20.0f;
  
  float projectileX;
  float projectileY;
   
  Projectile(float x, float y)
  {
    projectileX = x;
    projectileY = y;
  }
 
  void Update()
  {
    projectileY -= PROJECTILE_SPEED; 
  }
  
  float getX()
  {
   return projectileX; 
  }
  
  float getY()
  {
   return projectileY; 
  }
}
